/*
 * cgeHalftoneFilter.h
 *
 *  Created on: 2015-1-29
 *      Author: Wang Yang
 */

#ifndef _CGEHALFTONEFILTER_H_
#define _CGEHALFTONEFILTER_H_

#include "cgeGLFunctions.h"

namespace CGE
{
class CGEHalftoneFilter : public CGEImageFilterInterface
{
public:
    bool init();

    // Range: >= 1.
    void setDotSize(float value);

    void setIntensity(float value);

    void render2Texture(CGE::CGEImageHandlerInterface* handler, GLuint srcTexture, GLuint vertexBufferID);

protected:
    static CGEConstString paramAspectRatio;
    static CGEConstString paramDotPercent;
    float m_dotSize;
};

} // namespace CGE

#endif